#include  <stdio.h>
#include  <string.h>

int main()
{
  FILE *fp = fopen("log1.txt",'w');
  if(fp)
  {
    printf("fopen error!\n");
  }
  
  const char *msg = "Hello Linux\n";
  int count = 5;
  while(count--)
  {
    fwrite(msg,strlen(msg),1,fp);
  }

  fclose(fp);

  return 0;
}
